import os

f = open('testArrays.txt', 'r')
os.chdir("C:/testFiles")
for line in f.readlines():
    array = line.split(",")
    fileArray = array[0].split("/")
    arrayLen = len(fileArray)
    i = 0
    base = "."
    while (i < arrayLen - 1):
        base = base + "/" + fileArray[i]
        if (not os.access(base,os.F_OK)):
            os.mkdir(base)
            print base
        i = i + 1
    print array[0]
        
    testFile = open( array[0], 'w')
    testFile.close()
    
